package top.psjj.news.service.impl;

import top.psjj.news.dao.LinkDao;
import top.psjj.news.po.TLink;
import top.psjj.news.service.LinkService;

import java.util.List;

/**
 * @Auther:小陈的Java
 */
public class LinkServiceImpl implements LinkService {
    private LinkDao linkDao = new LinkDao();
    @Override
    public List<TLink> queryAll() throws Exception {
        return linkDao.queryAll();
    }

    @Override
    public void add(TLink link) throws Exception {
        linkDao.add(link);
    }

    @Override
    public TLink queryLinkById(int id) throws Exception {
        return linkDao.queryLink(id);
    }

    @Override
    public void update(TLink link) throws Exception {
        linkDao.update(link);
    }

    @Override
    public void del(int id) throws Exception {
        linkDao.del(id);
    }
}
